package com.eazy.lkv2.web.service.system.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eazy.lkv2.web.entity.Role;
import com.eazy.lkv2.web.mapper.system.RoleMapper;
import com.eazy.lkv2.web.service.system.SystemRoleService;
import com.rework.joss.persistence.convention.BaseDao;

@Service
public class SystemRoleServiceImpl extends BaseDao<Role, String> implements SystemRoleService {

	@Autowired
	private RoleMapper roleMapper;

	@Override
	public List<Map<String, Object>> getUserRoles(String userid) {
		return roleMapper.getUserRoles(userid);
	}

	@Override
	public List<Map<String, Object>> getRolePermissions(String id) {
		return roleMapper.getRolePermissions(id);
	}

	@Override
	public void deleteRolePermission(String roleId) {
		roleMapper.deleteRolePermission(roleId);
	}

}
